<%--
  Created by IntelliJ IDEA.
  User: 萌萌居家好男人
  Date: 2021/11/3
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑客户信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css" >
    <style>
        body {
            background-color: #46b8da;
        }
    </style>
</head>
<body>
<form class="form-horizontal" action="${pageContext.request.contextPath}/customer" method="get" style="width: 80%;margin-top: 50px">

    <input type="hidden" name="method" value="updateCustomerByKey"/>
    <input type="hidden" name="id" value="${cById.id}"/>

    <div class="form-group">
        <label for="inputName" class="col-sm-2 control-label">客户名字</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputName" placeholder="请输入修改后的名字" name="name" value="${cById.name}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputIdNumber" class="col-sm-2 control-label">身份证号</label>
        <div class="col-sm-10">
            <input type=text class="form-control" id="inputIdNumber" placeholder="请输入修改后的身份证号" name="idnumber" value="${cById.idnumber}">
        </div>
    </div>

    <div class="form-group">
        <label  class="col-sm-2 control-label radio-inline">客户性别</label>
        <div class="col-sm-10">
            <input type="radio" name="sex" id="1" value="男"  <c:if test="${cById.sex=='男'}">checked</c:if>>男
            <input type="radio" name="sex" id="0" value="女"  <c:if test="${cById.sex=='女'}">checked</c:if>>女
        </div>
    </div>

    <div class="form-group">
        <label for="inputCity" class="col-sm-2 control-label">城市</label>
        <div class="col-sm-10">
            <input type=text class="form-control" id="inputCity" placeholder="客户所在城市" name="city" value="${cById.city}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPhone" class="col-sm-2 control-label">电话</label>
        <div class="col-sm-10">
            <input type=number class="form-control" id="inputPhone" placeholder="输入客户电话号码" name="phone" value="${cById.phone}">
        </div>
    </div>

    <div class="form-group">
        <label for="inputEmail" class="col-sm-2 control-label">邮箱</label>
        <div class="col-sm-10">
            <input type=email class="form-control" id="inputEmail" placeholder="输入客户邮箱" name="email" value="${cById.email}">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-success">完成</button>
        </div>
    </div>
</form>
</body>
</html>
